<template>
  <div class="recommends">
      <div v-for="(item,index) in recommends" :key="index">
          <a :href="item.link">
              <img :src="item.image" alt="">
              <div>{{item.title}}</div>
          </a>
      </div>
  </div>
</template>

<script>
export default {
    name:"RecommendView",
    props:{
        recommends:{
            type:Array,
            default(){
                return []
            }
        }
    }
}
</script>

<style>
.recommends{
    width: 100%;
    display: flex;
    font-size: 12px;
    text-align: center;
    padding: 15px 0 15px;
    border-bottom: 8px solid #eee;
}
.recommends>div{
    flex: 25%;
}
.recommends img{
    height: 65px;
    width: 65px;
}
</style>